/**
 * 
 */
package test.experimenter;

import static org.junit.Assert.*;

import java.io.File;
import java.util.Collection;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;

import coder.CoderID;
import utilities.CommonParamsTest;
import utilities.LocalPaths;
import experimenter.Experimenter;

/**
 * @author Marcin Wachulski
 *
 */
@RunWith(Parameterized.class)
public class MTF 
{
	private static final String WORKING_DIR = LocalPaths.TEST_TEMP_PATH;
	private int blockSize;
	private File file;
	
	@Parameterized.Parameters
	public static Collection<Object[]> combinations() {
		return CommonParamsTest.getExperimentCombinations();
	}
	
	public MTF(int blockSize, File file) {
		this.blockSize = blockSize;
		this.file = file;
	}
	
	@Test
	public void test() {
		CoderID[] cids = { CoderID.MTF };
		Experimenter exp = new Experimenter(file, cids, blockSize, WORKING_DIR);
		try { 
			assertTrue(exp.run());
		} 
		catch (Exception e) {
			e.printStackTrace();
		}
		
		System.out.println(exp);
	}
}
